<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@page import="java.lang.*" %>
    <%@taglib prefix='c' uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
 .one ul li{
  display: inline-block;
  
 }
 .two ul li{
  display: inline-block;
 }
</style>
</head>
<body>

    <div class="one">
     <h2>订单详情</h2>
      <ul class="list-header">
        <li class="cloumn01">订单id</li>
        <li class="cloumn02">订单名称</li>
        <li class="cloumn07">订单总金额</li>
        <li class="cloumn07">发货方式</li>
        <li class="cloumn04">上次更新时间</li>
        <li class="cloumn05">创建时间</li>
     </ul>
      <ul class="list-header">
        <li class="cloumn01">${requestScope.order.orderId }</li>
        <li class="cloumn02">${requestScope.order.orderCode }</li>
        <li class="cloumn07">${requestScope.order.sum }</li>
        <li class="cloumn04">${requestScope.order.deliveryMethod }</li>
        <li class="cloumn05">${requestScope.order.lastModifyDate }</li>
        <li class="cloumn05">${requestScope.order.createddate }</li>
     </ul>
    </div>
    
  <div class="two">
     <h2>订单明细</h2>
      <ul class="list-header">
        <li class="cloumn02">货物名称</li>
        <li class="cloumn07">货物数量</li>
        <li class="cloumn05">货物金额</li>
     </ul>
     <c:forEach var='list' items="${requestScope.itemlist }">
      <ul>
       <li>${list.name }</li>
       <li>${list.unitNum }</li>
       <li>${list.sum }</li>
       <li><input type="submit" onclick="document.location.href='<%=request.getContextPath() %>/servlet/itemsservlet?method=view&itemid='+${list.itemid}+'&discounttype='+${list.discountType}" value="查看/修改"></li>
       <li><input type="submit" onclick="document.location.href='<%=request.getContextPath() %>/servlet/itemsservlet?method=delete&itemid='+${list.itemid}+'&sum='+${list.sum}+'&orderid='+${list.orderId}" value="删除"></li>
      </ul>
     </c:forEach>
 </div>
 <div>
  <form action="<%=request.getContextPath()%>/view/orders/orderItemManage/itemadd.jsp?orderid=${requestScope.order.orderId}" method='post'>
    <input type="submit" value="增加明细">
  </form>
  
 </div>
 <br/>
 <div>
 <input type="submit" onclick="document.location.href='<%=request.getContextPath()%>//servlet/orderservlet?method=list'"  value="返回上一级">
 </div>
</body>
</html>